﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using Aliphant.UI.Windows;

namespace Aliphant.UI.Widgets
{

    public abstract class BaseWidget : UserControl
    {
        /// <summary>
        /// 拖动窗口
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public virtual void DropWindow(object sender, MouseButtonEventArgs e)
        {
            // 直接调用这个命令就可以实现拖动啦，嘻嘻
            GlobalProperty.WindowDropMoveCommand.Execute(null, null);
        }

        public virtual void DropWindowOver(object sender, MouseButtonEventArgs e)
        {

        }
    }
}
